package com.ldk;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

import com.ldk.run.Work;
import com.ldk.run.WorkImpl;


public class Main {
	public static void main(String[] args) {
		Work  work = new WorkImpl();
		Scanner in = new Scanner(System.in);
		String inString = null;
//		while(in.hasNext()){
			inString = in.nextLine();
			String[] ss = inString.split(" ");
			String targetHead = ss[0];
			List<String> instructions = new ArrayList<String>();
			for(int i = 1;i<ss.length;i++){
				instructions.add(ss[i]);
			}
			work.work(targetHead,instructions);
//		}
	}
}
